<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '设置';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="settings-index">

    <h1><?php echo Html::encode($this->title) ?></h1>
    <?php $session = Yii::$app->session; ?>
    <?php if ($session->getFlash('message')): ?>
        <div class="alert alert-success" role="alert"><?php echo $session->getFlash('message'); ?></div>
    <?php endif; ?>
    <div class="qa-form">

        <form method="post" action="/admin/setting">
            <div class="form-group">
                <label for="site_name">站点名字</label>
                <input type="text" class="form-control" id="site_name" name="site_name" value="<?php echo $site_name->value ? $site_name->value : '' ?>">
            </div>
            <div class="form-group">
                <label for="site_slogan">站点口号</label>
                <input type="text" class="form-control" id="site_slogan" name="site_slogan" value="<?php echo $site_slogan->value ? $site_slogan->value : '' ?>">
            </div>
            <div class="form-group">
                <label for="site_url">站点URL地址</label>
                <input type="text" class="form-control" id="site_url" name="site_url" value="<?php echo $site_url->value ? $site_url->value : '' ?>">
            </div>
            <div class="form-group">
                <label for="site_logo">站点LOGO</label>
                <input type="text" class="form-control" id="site_logo" name="site_logo" value="<?php echo $site_logo->value ? $site_logo->value : '' ?>">
            </div>
            <div class="form-group">
                <label for="site_cpoyright">Copyright</label>
                <input type="text" class="form-control" id="site_cpoyright" name="site_cpoyright" value="<?php echo $site_cpoyright->value ? $site_cpoyright->value : '' ?>">
            </div>
            <div class="form-group">
                <label for="tongji">统计代码</label>
                <textarea id="tongji" name="tongji" class="form-control" rows="3"><?php echo $tongji->value ? $tongji->value : '' ?></textarea>
            </div>
            <div class="form-group">
                <input type="submit" value="保存" class="btn btn-success">
            </div>

        </form>

    </div>

</div>
